//
//  Auction_SpecialSaleBusinessInfoGrade_Cell_WX.m
//  ZITHER
//
//  Created by weixin on 2019/6/4.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "Auction_SpecialSaleBusinessInfoGrade_Cell_WX.h"

@implementation Auction_SpecialSaleBusinessInfoGrade_Cell_WX

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = HexColor(0xf5f5f5);
    [self setUI];
}

-(void)setUI{
    
    [self.GradeCountLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(30);
        make.left.equalTo(self).offset(15);
        make.height.mas_equalTo(22);
    }];
    
    [self.Gradeview mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.GradeCountLab.mas_bottom).offset(10);
        make.left.equalTo(self).offset(15);
        make.right.equalTo(self).offset(-15);
        make.height.mas_equalTo((kScreenW-30)/345.0*208);
    }];
    
    [self.CommentCountLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.Gradeview.mas_bottom).offset(20);
        make.left.equalTo(self).offset(15);
        make.height.mas_equalTo(22);
        make.bottom.equalTo(self.mas_bottom).offset(0);
    }];
    
}
-(BaseLab *)GradeCountLab{
    if (!_GradeCountLab) {
        _GradeCountLab = [BaseLab initCustomLab:@"322人评分" color:HexColor(0x333333) font:[UIFont fontWithName:@"PingFangSC-Semibold" size:20]];
        _GradeCountLab.backgroundColor = [UIColor clearColor];
        [self addSubview:_GradeCountLab];
    }
    return _GradeCountLab;
}

-(BaseLab *)CommentCountLab{
    if (!_CommentCountLab) {
        _CommentCountLab = [BaseLab initCustomLab:@"26个评价" color:HexColor(0x333333) font:[UIFont fontWithName:@"PingFangSC-Semibold" size:20]];
        _CommentCountLab.backgroundColor = [UIColor clearColor];
        [self addSubview:_CommentCountLab];
    }
    return _CommentCountLab;
}

-(Auction_SpecialSaleBusinessInfoGrade_View_WX *)Gradeview{
    if (!_Gradeview) {
        _Gradeview = [[Auction_SpecialSaleBusinessInfoGrade_View_WX alloc]init];
        _Gradeview.backgroundColor = [UIColor whiteColor];
        [self addSubview:_Gradeview];
    }
    return _Gradeview;
}

@end
